#ifndef REGI_H
#define REGI_H

#include <QMainWindow>
#include <QMessageBox>
#include <QTcpSocket>
#include <login.h>
#include <uidesign.h>

#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonParseError>
#include <QJsonValue>
#include <QJsonValuePtr>
#include <QJsonValueRef>
#include <QJsonValueRefPtr>

namespace Ui {
class regi;
}

class regi : public QMainWindow
{
    Q_OBJECT

public:
    explicit regi(QWidget *parent = nullptr);
    explicit regi(QTcpSocket* s, QWidget *parent = nullptr);
    ~regi();

private slots:
    void on_confirmButton_clicked();
    void on_backButton_clicked();
    void recv();
private:
    Ui::regi *ui;
    QTcpSocket* sock;
signals:
    void mainclose();
    void regiclose(QString);
};

#endif // REGI_H
